package com.gxa.day2022_07_29_21.homework.order_system_4.model;




public class Order {

    private int idx;//保留未使用
    private String userName;
    private String dishMsg;
    private int time;
    private String address;
    private double sumPrice;
    private int orderStatu;

    public Order(String userName,String dishMsg,int time,String address,double sumPrice){
        this.userName= userName;
        this.dishMsg=dishMsg;
        this.time=time;
        this.address =address;
        this.sumPrice =sumPrice;
    }
    public Order(String userName,String dishMsg,int time,String address,double sumPrice,int orderStatu){
        this(userName, dishMsg, time, address, sumPrice);
        this.orderStatu =orderStatu;
    }

    public Order() {

    }

    @Override
    public String toString() {
        return
                userName + '\t' +
                dishMsg + '\t' +
                time +'\t' +
                address + '\t' +
                sumPrice +'\t' +
                orderStatu
                ;
    }

    public int getIdx() {
        return idx;
    }

    public  void setIdx(int idx) {
        this.idx = idx;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDishMsg() {
        return dishMsg;
    }

    public void setDishMsg(String dishMsg) {
        this.dishMsg = dishMsg;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public double getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(double sumPrice) {
        this.sumPrice = sumPrice;
    }

    public int getOrderStatu() {
        return orderStatu;
    }

    public void setOrderStatu(int orderStatu) {
        this.orderStatu = orderStatu;
    }
}
